import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    active:0,
    city:'北京',
    cityId:110100,
    filmId:0
  },
  getters: {
  },
  mutations: {
    changeTest(state, n) {
      state.test1 = n
    },
    changeActive(state,n){
      state.active = n
    },
    changeCity(state,c){
      state.city = c
    },
    changeCityId(state,id){
      state.cityId = id
    },
    changeFilmId(state,id){
      state.filmId = id
    },
  },
  actions: {
  },
  modules: {
  }
})
